﻿@using XStudio.XCRF.Web.Models.LabCheck
@model LabCheckWithStd
@{
    ViewBag.Title = "实验室检查详情";
    Layout = "~/Views/Shared/Master.cshtml";
}
@{Html.Telerik().Window().Name("LabCheckDetailWindow").Title("实验室详情").HtmlAttributes(new { @class = "ContentLargeWindow" })
    .Buttons(buttons => buttons.Clear())
    .Content(
@<text>
<span style="padding-right:4px;">
@if (Model.labCheck.CanModify() && !Model.labCheck.IsDeleted)
{
    @(Html.ActionLink<LabCheckController>("编辑", c => c.LabCheckEdit(Model.labCheck.ID)))
}
</span>
<span>
@if (!Model.labCheck.IsDeleted)
{
    @(Html.ActionLink<CRFController>("返回病例报告详情", c => c.CRFDetail((Guid)Model.labCheck.CRFID)))<br/>
}
</span>
@*<span>
@if (Model.labCheck.IsDeleted)
{
    @(Html.ActionLink<LabCheckController>("返回历史记录", c => c.LabCheckHisGridList((Guid)Model.labCheck.ID)))<br/>
}
</span>*@
<table>
    <tr>
        <th>送检时间：</th>
        <td>
            @Html.HiddenFor(model => model.labCheck.ID)
            @Html.HiddenFor(model => model.labCheck.CRFID)
            @Html.DisplayFor(model => model.labCheck.Time)
        </td>
    </tr>
</table>
@panelBar()
</text>)
    .Render();   
}
@helper panelBar()
    {
    Html.Telerik().PanelBar().ExpandAll(true)
    .Name("LabCheckMenu")
    .HtmlAttributes(new { @class = "ContentWindow" })
    .Items(items =>
    {
        items.Add().Text("血沉")
            .Content(@<text>
              @Html.Partial("ESRDetail", Model)
              </text>);
        items.Add().Text("血常规")
            .Content(@<text>
              @Html.Partial("BloodDetail", Model)
              </text>);
        items.Add().Text("尿常规")
            .Content(@<text>
              @Html.Partial("UrineDetail", Model)
              </text>);
        items.Add().Text("粪常规")
            .Content(@<text>
              @Html.Partial("FaecesDetail", Model)
              </text>);
        items.Add().Text("肝肾功能")
            .Content(@<text>
              @Html.Partial("LiverKidneyDetail", Model)
              </text>);
        items.Add().Text("肿瘤标志物")
            .Content(@<text>
              @Html.Partial("TumorDetail", Model)
              </text>);
        items.Add().Text("免疫系统相关")
            .Content(@<text>
              @Html.Partial("ImuneDetail", Model)
              </text>);
        items.Add().Text("特殊检查")
            .Content(@<text>
              @Html.Partial("ECGDetail", Model.labCheck)
              </text>);
    }).Render();
}